import axios from "@/axios";

export default {
  // page:function(data){
  //   return axios.get('/cms/admin/moduleBase/pageData?page='+data.page+'&size='+1)
  // },
  page:function(data){
    return axios.post('/cms/admin/moduleBase/pageData',data)
  },
  //获取树型结构
  tree:function(data){
    return axios.get('/cms/admin/moduleBase/tree',data)
  },
  //保存树型结构（拖拽）
  saveTree:function(data){
    return axios.post('/cms/admin/moduleBase/saveTree',data)
  },
  //保存单个分类
  save:function(data){
    return axios.post('/cms/admin/moduleBase/save',data)
  },
  //获取详情
  detail:function(data){
    return axios.get('/cms/admin/moduleBase/detail/'+data)
  },
  //删除单个分类
  delete:function(data){
    return axios.delete('/cms/admin/moduleBase/delete/'+data)
  },
}